//
//  ViewController.m
//  HLTestDemo
//
//  Created by hulinhu on 2021/12/11.
//

#import "ViewController.h"
@import  HLNetWorking;
@import  HLFoundation;

#define SCREEN_WIDTH   [UIScreen mainScreen].bounds.size.width
#define SCREENH_HEIGHT [UIScreen mainScreen].bounds.size.height

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    // 组件 调用1
    HLNetWorking *network = [[HLNetWorking alloc] init];
    [network loadNewtWork];
    
    // 组件调用2
    CGFloat offsetX = (SCREEN_WIDTH - 200) * 0.5;
    UILabel *label = [HLControl createLabelWithFrame:CGRectMake(offsetX, 100, 200, 40) text:@"组件调用" textAlignment:NSTextAlignmentCenter fontSize:18  textColor:[UIColor whiteColor] bgColor:[UIColor blueColor] cornerRadius:6 tag:0];
    [self.view addSubview:label];
}

@end
